package com.cash.channel.api.model;

import com.alibaba.fastjson.JSON;

import java.io.Serializable;

/**
 * @blame taihao
 */
public class ApiResponseModel<T extends DataModel> implements Serializable {

    private Boolean success;

    private Integer code;

    private String message;

    private T result;

    public ApiResponseModel(Boolean success, Integer code, String message, T result) {
        this.success = success;
        this.code = code;
        this.message = message;
        this.result = result;
    }

    public Boolean getSuccess() {
        return success;
    }

    public void setSuccess(Boolean success) {
        this.success = success;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public T getResult() {
        return result;
    }

    public void setResult(T result) {
        this.result = result;
    }
}
